Optimal. Leaf size=631 \[ -\frac{2 \sqrt{2} \sqrt{b^2-4 a c} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} \sqrt{\frac{c (f+g x)}{2 c f-g \left (\sqrt{b^2-4 a c}+b\right )}} \left (-c e^2 g (a g (7 e f-15 d g)-3 b f (e f-5 d g))+4 b e^3 g^2 (b f-a g)+c^2 \left (45 d^2 e f g^2-15 d^3 g^3-30 d e^2 f^2 g+8 e^3 f^3\right )\right ) \text{EllipticF}\left (\sin ^{-1}\left (\frac{\sqrt{\frac{\sqrt{b^2-4 a c}+b+2 c x}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right ),-\frac{2 g \sqrt{b^2-4 a c}}{2 c f-g \left (\sqrt{b^2-4 a c}+b\right )}\right )}{15 c^3 g^3 \sqrt{f+g x} \sqrt{a+b x+c x^2}}+\frac{\sqrt{2} e \sqrt{b^2-4 a c} \sqrt{f+g x} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} \left (c e g (-9 a e g-30 b d g+7 b e f)+8 b^2 e^2 g^2+c^2 \left (45 d^2 g^2-30 d e f g+8 e^2 f^2\right )\right ) E\left (\sin ^{-1}\left (\frac{\sqrt{\frac{b+2 c x+\sqrt{b^2-4 a c}}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )|-\frac{2 \sqrt{b^2-4 a c} g}{2 c f-\left (b+\sqrt{b^2-4 a c}\right ) g}\right )}{15 c^3 g^3 \sqrt{a+b x+c x^2} \sqrt{\frac{c (f+g x)}{2 c f-g \left (\sqrt{b^2-4 a c}+b\right )}}}-\frac{8 e^2 \sqrt{f+g x} \sqrt{a+b x+c x^2} (b e g-3 c d g+c e f)}{15 c^2 g^2}+\frac{2 e^2 (d+e x) \sqrt{f+g x} \sqrt{a+b x+c x^2}}{5 c g} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 1.09021, antiderivative size = 631, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.194, Rules used = {930, 1653, 843, 718, 424, 419} \[ -\frac{2 \sqrt{2} \sqrt{b^2-4 a c} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} \sqrt{\frac{c (f+g x)}{2 c f-g \left (\sqrt{b^2-4 a c}+b\right )}} \left (-c e^2 g (a g (7 e f-15 d g)-3 b f (e f-5 d g))+4 b e^3 g^2 (b f-a g)+c^2 \left (45 d^2 e f g^2-15 d^3 g^3-30 d e^2 f^2 g+8 e^3 f^3\right )\right ) F\left (\sin ^{-1}\left (\frac{\sqrt{\frac{b+2 c x+\sqrt{b^2-4 a c}}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )|-\frac{2 \sqrt{b^2-4 a c} g}{2 c f-\left (b+\sqrt{b^2-4 a c}\right ) g}\right )}{15 c^3 g^3 \sqrt{f+g x} \sqrt{a+b x+c x^2}}+\frac{\sqrt{2} e \sqrt{b^2-4 a c} \sqrt{f+g x} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} \left (c e g (-9 a e g-30 b d g+7 b e f)+8 b^2 e^2 g^2+c^2 \left (45 d^2 g^2-30 d e f g+8 e^2 f^2\right )\right ) E\left (\sin ^{-1}\left (\frac{\sqrt{\frac{b+2 c x+\sqrt{b^2-4 a c}}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )|-\frac{2 \sqrt{b^2-4 a c} g}{2 c f-\left (b+\sqrt{b^2-4 a c}\right ) g}\right )}{15 c^3 g^3 \sqrt{a+b x+c x^2} \sqrt{\frac{c (f+g x)}{2 c f-g \left (\sqrt{b^2-4 a c}+b\right )}}}-\frac{8 e^2 \sqrt{f+g x} \sqrt{a+b x+c x^2} (b e g-3 c d g+c e f)}{15 c^2 g^2}+\frac{2 e^2 (d+e x) \sqrt{f+g x} \sqrt{a+b x+c x^2}}{5 c g} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 930
Rule 1653
Rule 843
Rule 718
Rule 424
Rule 419
Rubi steps
\begin{align*} \int \frac{(d+e x)^3}{\sqrt{f+g x} \sqrt{a+b x+c x^2}} \, dx &=\frac{2 e^2 (d+e x) \sqrt{f+g x} \sqrt{a+b x+c x^2}}{5 c g}-\frac{\int \frac{b d e^2 f-5 c d^3 g+a e^2 (2 e f+d g)+e (c d (2 e f-15 d g)+e (3 b e f+2 b d g+3 a e g)) x+4 e^2 (c e f-3 c d g+b e g) x^2}{\sqrt{f+g x} \sqrt{a+b x+c x^2}} \, dx}{5 c g}\\ &=-\frac{8 e^2 (c e f-3 c d g+b e g) \sqrt{f+g x} \sqrt{a+b x+c x^2}}{15 c^2 g^2}+\frac{2 e^2 (d+e x) \sqrt{f+g x} \sqrt{a+b x+c x^2}}{5 c g}-\frac{2 \int \frac{-\frac{1}{2} g \left (4 b^2 e^3 f g+b e^2 \left (4 a e g^2+c f (4 e f-15 d g)\right )+c g \left (15 c d^3 g-a e^2 (2 e f+15 d g)\right )\right )-\frac{1}{2} e g \left (8 b^2 e^2 g^2+c e g (7 b e f-30 b d g-9 a e g)+c^2 \left (8 e^2 f^2-30 d e f g+45 d^2 g^2\right )\right ) x}{\sqrt{f+g x} \sqrt{a+b x+c x^2}} \, dx}{15 c^2 g^3}\\ &=-\frac{8 e^2 (c e f-3 c d g+b e g) \sqrt{f+g x} \sqrt{a+b x+c x^2}}{15 c^2 g^2}+\frac{2 e^2 (d+e x) \sqrt{f+g x} \sqrt{a+b x+c x^2}}{5 c g}+\frac{\left (e \left (8 b^2 e^2 g^2+c e g (7 b e f-30 b d g-9 a e g)+c^2 \left (8 e^2 f^2-30 d e f g+45 d^2 g^2\right )\right )\right ) \int \frac{\sqrt{f+g x}}{\sqrt{a+b x+c x^2}} \, dx}{15 c^2 g^3}-\frac{\left (4 b e^3 g^2 (b f-a g)+c^2 \left (8 e^3 f^3-30 d e^2 f^2 g+45 d^2 e f g^2-15 d^3 g^3\right )-c e^2 g (a g (7 e f-15 d g)-3 b f (e f-5 d g))\right ) \int \frac{1}{\sqrt{f+g x} \sqrt{a+b x+c x^2}} \, dx}{15 c^2 g^3}\\ &=-\frac{8 e^2 (c e f-3 c d g+b e g) \sqrt{f+g x} \sqrt{a+b x+c x^2}}{15 c^2 g^2}+\frac{2 e^2 (d+e x) \sqrt{f+g x} \sqrt{a+b x+c x^2}}{5 c g}+\frac{\left (\sqrt{2} \sqrt{b^2-4 a c} e \left (8 b^2 e^2 g^2+c e g (7 b e f-30 b d g-9 a e g)+c^2 \left (8 e^2 f^2-30 d e f g+45 d^2 g^2\right )\right ) \sqrt{f+g x} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}}\right ) \operatorname{Subst}\left (\int \frac{\sqrt{1+\frac{2 \sqrt{b^2-4 a c} g x^2}{2 c f-b g-\sqrt{b^2-4 a c} g}}}{\sqrt{1-x^2}} \, dx,x,\frac{\sqrt{\frac{b+\sqrt{b^2-4 a c}+2 c x}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )}{15 c^3 g^3 \sqrt{\frac{c (f+g x)}{2 c f-b g-\sqrt{b^2-4 a c} g}} \sqrt{a+b x+c x^2}}-\frac{\left (2 \sqrt{2} \sqrt{b^2-4 a c} \left (4 b e^3 g^2 (b f-a g)+c^2 \left (8 e^3 f^3-30 d e^2 f^2 g+45 d^2 e f g^2-15 d^3 g^3\right )-c e^2 g (a g (7 e f-15 d g)-3 b f (e f-5 d g))\right ) \sqrt{\frac{c (f+g x)}{2 c f-b g-\sqrt{b^2-4 a c} g}} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}}\right ) \operatorname{Subst}\left (\int \frac{1}{\sqrt{1-x^2} \sqrt{1+\frac{2 \sqrt{b^2-4 a c} g x^2}{2 c f-b g-\sqrt{b^2-4 a c} g}}} \, dx,x,\frac{\sqrt{\frac{b+\sqrt{b^2-4 a c}+2 c x}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )}{15 c^3 g^3 \sqrt{f+g x} \sqrt{a+b x+c x^2}}\\ &=-\frac{8 e^2 (c e f-3 c d g+b e g) \sqrt{f+g x} \sqrt{a+b x+c x^2}}{15 c^2 g^2}+\frac{2 e^2 (d+e x) \sqrt{f+g x} \sqrt{a+b x+c x^2}}{5 c g}+\frac{\sqrt{2} \sqrt{b^2-4 a c} e \left (8 b^2 e^2 g^2+c e g (7 b e f-30 b d g-9 a e g)+c^2 \left (8 e^2 f^2-30 d e f g+45 d^2 g^2\right )\right ) \sqrt{f+g x} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} E\left (\sin ^{-1}\left (\frac{\sqrt{\frac{b+\sqrt{b^2-4 a c}+2 c x}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )|-\frac{2 \sqrt{b^2-4 a c} g}{2 c f-\left (b+\sqrt{b^2-4 a c}\right ) g}\right )}{15 c^3 g^3 \sqrt{\frac{c (f+g x)}{2 c f-\left (b+\sqrt{b^2-4 a c}\right ) g}} \sqrt{a+b x+c x^2}}-\frac{2 \sqrt{2} \sqrt{b^2-4 a c} \left (4 b e^3 g^2 (b f-a g)+c^2 \left (8 e^3 f^3-30 d e^2 f^2 g+45 d^2 e f g^2-15 d^3 g^3\right )-c e^2 g (a g (7 e f-15 d g)-3 b f (e f-5 d g))\right ) \sqrt{\frac{c (f+g x)}{2 c f-\left (b+\sqrt{b^2-4 a c}\right ) g}} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} F\left (\sin ^{-1}\left (\frac{\sqrt{\frac{b+\sqrt{b^2-4 a c}+2 c x}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )|-\frac{2 \sqrt{b^2-4 a c} g}{2 c f-\left (b+\sqrt{b^2-4 a c}\right ) g}\right )}{15 c^3 g^3 \sqrt{f+g x} \sqrt{a+b x+c x^2}}\\ \end{align*}
Mathematica [C] time = 13.7705, size = 12746, normalized size = 20.2 \[ \text{Result too large to show} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.351, size = 8755, normalized size = 13.9 \begin{align*} \text{output too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (e x + d\right )}^{3}}{\sqrt{c x^{2} + b x + a} \sqrt{g x + f}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{{\left (e^{3} x^{3} + 3 \, d e^{2} x^{2} + 3 \, d^{2} e x + d^{3}\right )} \sqrt{c x^{2} + b x + a} \sqrt{g x + f}}{c g x^{3} +{\left (c f + b g\right )} x^{2} + a f +{\left (b f + a g\right )} x}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (d + e x\right )^{3}}{\sqrt{f + g x} \sqrt{a + b x + c x^{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]